<%@ Page language="c#" Inherits="FlashBack.Web.LoginPage" CodeFile="LoginPage.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Flashback login page</title>
		<link href="FlashBack.css" type="text/css" rel="stylesheet"/>
		<script language="javascript">

function OnLoad()
{
	if(document.getElementById("InvalidLogin") != null)
		document.getElementById("Password").focus();
	else
		document.getElementById("UserName").focus();
}

		</script>
	</HEAD>
	<body onload="OnLoad()">
		<form method="post" runat="server">
			<TABLE height="100%" width="100%">
				<TBODY>
					<TR>
						<td align="middle">
							<br>
							<h1>
								Welcome to FlashBack</h1>
							<hr>
						</td>
					</TR>
					<tr>
						<td vAlign="center" align="middle" height="100%">
							<TABLE cellSpacing="5" cellPadding="5">
								<TBODY>
									<tr>
										<td colspan="2"><asp:Label Runat="server" ID="InvalidLogin" Visible="False" ForeColor="Red" Font-Bold="True">Invalid user name or password.<br>Please try again.</asp:Label></td>
									</tr>
									<TR>
										<TD>User Name:</TD>
										<td><input size="10" maxlength="30" type="text" id="UserName" runat="server"></input></td>
									</TR>
									<TR>
										<TD>Password:</TD>
										<TD><input size="10" maxlength="30" id="Password" runat="server" type="password"></input></TD>
									</TR>
									<TR>
										<TD colspan="2"><asp:CheckBox CssClass="searchBody" id="Remember" runat="server" Text=" Remember Me" TextAlign="Right"></asp:CheckBox></TD>
									</TR>
									<TR>
										<TD align="right" colSpan="2"><asp:button id="DoLogin" runat="server" Text="Login" CommandName="Login" oncommand="Login"></asp:button></TD>
									</TR>
									<TR>
										<TD align="right" colSpan="2"><a class="searchBody" href="SendPassword.aspx">Can't 
												remember your username or password?</a></TD>
									</TR>
								</TBODY>
							</TABLE>
						</td>
					</tr>
				</TBODY>
			</TABLE>
		</form>
	</body>
</HTML>
